import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Navigation from 'vue-navigation'
import api from './api/index'
import Vfilter from  './assets/js/filter'
import 'element-ui/lib/theme-chalk/display.css';
import 'element-ui/lib/theme-chalk/dialog.css';
import 'element-ui/lib/theme-chalk/icon.css';
import './assets/js/rem' // rem适配

import './assets/css/main.less' //公共样式
import './assets/js/components' // 全局组件
import './assets/js/element' // ele组件

Vue.config.productionTip = false

Vue.use(Navigation, {router, store});
for (let key in Vfilter) {
  Vue.filter(key, Vfilter[key])
}
Vue.prototype.$api = api;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
